import regeneratorRuntime from '../../lib/runtime/runtime';
import { request } from "../../request/index.js";
Page({
  data: {
    //轮播图数组
    swiperlist: [],
    //导航数组
    catesList:[],
    //楼层数据
    FloorList:[]
  },
  onLoad: function (options) {
    this.getswiper()
    this.getcates()
    this.getFloor()
  },
  //获取轮播图
  getswiper(){
    request({ url: "/home/swiperdata" }).then(res => {
      this.setData({
        swiperlist: res
      })
    })
  },
  //获取导航
  getcates(){
    request({ url: "/home/catitems" }).then(res => {
      this.setData({
        catesList: res
      })
    })
  },
  //获取楼层数据
  getFloor(){
    request({ url: "/home/floordata" }).then(res => {
      this.setData({
        FloorList: res
      })
    })
  }
})
